package com.nais.constant;

public enum OrderType {
	
	S_XUANKE(101, "暑校选课订单"),
	S_ZHUSU(102, "暑校住宿订单"),
	S_YAJIN(103, "暑校押金订单");
	
	private int index;
	
	private String name;

	
	private OrderType(int index, String name) {
		this.index = index;
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static String getName(int index) {
		switch (index) {
		case 101:
			return S_XUANKE.getName();
		case 102:
			return S_ZHUSU.getName();
		case 103:
			return S_YAJIN.getName();
		default:
			return "";
		}
	}
	
}
